﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace SchoolManagementSystem.Report._3._KeToan
{
    public partial class BaoCaoTongHopChuyenNghiep : DevExpress.XtraReports.UI.XtraReport
    {
        public BaoCaoTongHopChuyenNghiep()
        {
            InitializeComponent();
        }
        int STT = 0;
        private void GroupHeader1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            try
            {
                var CourseType = (int)GetCurrentColumnValue("ClassTypeExt");
                if (CourseType == 0)
                {
                    xrLabel_CourseType.Text = "Ngắn Hạn";
                }
                else
                {
                    xrLabel_CourseType.Text = "Chuyên Nghiệp";
                }
            }
            catch { }
        }
        string ClassName = "";
        int slbaoluu = 0;
        int slnghiluon = 0;
        int sltotnghiep = 0;
        int slnhaphoc = 0;
        int tongtien = 0;
        private void Detail_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            try
            {
                //trang thai hoc vien  //2: = bao luu, 4 dang hoc, 9 da tot nghiep,10 nghỉ luôn
                STT++;
                xrTableCell1_STT.Text = STT.ToString();
            }
            catch { }
           
        }

        private void ReportFooter_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            xrLabel_datetime.Text = "Tp. Hồ Chí Minh, ngày " + DateTime.Now.Day + " tháng " + DateTime.Now.Month + " năm " + DateTime.Now.Year;
            xrLabel_Staff.Text = Helper.ValueDefine.StaffName;

        }


    }
}
